﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FTLiteLogic.Delegates
{
    public class ReportableEvent
    {

        public delegate void ReportableEventHandler(object sender, ReportableEventArgs e);
        public event ReportableEventHandler OnReportableEvent;

        public void Report(object sender, ReportableEventArgs eventArgs)
        {
            if(OnReportableEvent != null)
            {
                OnReportableEvent(sender, eventArgs);
            }
        }

    }

    public class ReportableEventArgs
    {
        public string EventDescription { get; set; }
        public bool IsEventSuccess { get; set; }
    }
}
